package com.bhp.bencaoguoyi.base.ctl;

import com.bhp.bencaoguoyi.base.entity.Label;
import com.bhp.bencaoguoyi.base.service.LabelService;
import com.bhp.bencaoguoyi.commom.web.AjaxPage;
import com.bhp.bencaoguoyi.commom.web.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName LabelCtl
 * @Description 标签
 * @Author 北海派
 * @Date 2020/6/17 20:40
 * @Version 1.0
 **/
@RequestMapping("/bcgy/base/labels")
@RestController
public class LabelCtl {

    @Autowired
    private LabelService labelService;

    @GetMapping()
    public AjaxResult getPage() {
        return AjaxResult.success(labelService.list());
    }
}
